<?php
require_once 'libs/Twig/Autoloader.php';
Twig_Autoloader::register();

$loader = new Twig_Loader_Filesystem('./templates');
$twig = new Twig_Environment($loader, array(
    'cache' => './tmp/cache',
    'auto_reload' => true
        ));

$page = (isset($_GET['page']))?$_GET['page']:'';

switch ($page) {
    case 'statystyki':
        include 'includes/statystyki.inc';
        break;
    default:
        include 'includes/default.inc';
        break;
}

$template->display($zmienne);
?>


